<%--<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>--%>
<%--<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>--%>

<%--<!DOCTYPE html>--%>
<%--<html lang="zh-cn">--%>
<%--<head>--%>
<%--    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />--%>
<%--    <meta http-equiv="X-UA-Compatible" content="IE=edge">--%>
<%--    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />--%>
<%--    <meta name="renderer" content="webkit">--%>
<%--    <title></title>--%>
<%--    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/pintuer.css">--%>
<%--    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/admin.css">--%>
<%--    <script src="<%=request.getContextPath()%>/js/jquery.js"></script>--%>
<%--    <script src="<%=request.getContextPath()%>/js/pintuer.js"></script>--%>
<%--</head>--%>
<%--<body>--%>
<%--<form method="post" action="CollegeServlet?action=query" id="listform">--%>
<%--    <div class="panel admin-panel">--%>
<%--        <div class="padding border-bottom">--%>
<%--            <ul class="search" style="padding-left:10px;">--%>
<%--                <li> <a class="button border-main icon-plus-square-o" href="CollegeServlet?action=viewadd"> 添加二级学院</a> </li>--%>

<%--                <li>--%>
<%--                    <input type="text" placeholder="请输入二级学院名称" name="collegeName" class="input" style="width:250px; line-height:17px;display:inline-block" />--%>

<%--                    <a href="javascript:void(0)" class="button border-main icon-search" onclick="changeSearch()" > 搜索</a></li>--%>
<%--            </ul>--%>
<%--        </div>--%>
<%--        <table class="table table-hover text-center">--%>
<%--            <tr>--%>
<%--                <th >二级学院编号</th>--%>
<%--                <th >二级学院名称</th>--%>
<%--                <th>操作</th>--%>
<%--            </tr>--%>
<%--            &lt;%&ndash;使用JSTL标签库的迭代标签输出userlist集合的元素&ndash;%&gt;--%>
<%--            <c:forEach var="item" items="${requestScope.college}" >--%>
<%--                <tr>--%>
<%--                    <td >${item.depID}</td>--%>
<%--                    <td >${item.depName}</td>--%>
<%--                    <td><div class="button-group">--%>
<%--                        <a class="button border-main" href="CollegeServlet?action=viewedit&depID=${item.collegeID}"><span class="icon-edit"></span> 修改</a>--%>
<%--                        <a class="button border-red" href="CollegeServlet?action=delete&depID=${item.collegeID}" ><span class="icon-trash-o"></span> 删除</a>--%>
<%--                    </div></td>--%>
<%--                </tr>--%>
<%--            </c:forEach>--%>
<%--        </table>--%>
<%--    </div>--%>
<%--</form>--%>
<%--<script>--%>
<%--    function changeSearch(){--%>
<%--        $("#listform").submit();--%>
<%--    }--%>
<%--</script>--%>
<%--</body>--%>
<%--</html>--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%--使用taglib 引入标签库--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/pintuer.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/admin.css">
    <script src="<%=request.getContextPath()%>/js/jquery.js"></script>
    <script src="<%=request.getContextPath()%>/js/pintuer.js"></script>
</head>
<body>
<form method="post" action="TeacherServlet" id="listform">
    <div class="panel admin-panel">
        <div class="padding border-bottom">
            <ul class="search" style="padding-left:10px;">
                <li> <a class="button border-main icon-plus-square-o" href="TeacherServlet?action=viewadd"> 添加辅导员</a> </li>
                <li>搜索：</li>

                <li>
                    <input type="text" placeholder="请输入辅导员工号" name="instID" class="input" style="width:250px; line-height:17px;display:inline-block" />
                    <input type="text" placeholder="请输入辅导员姓名" name="name" class="input" style="width:250px; line-height:17px;display:inline-block" />
                    <a href="javascript:void(0)" class="button border-main icon-search" onclick="changeSearch()" > 搜索</a></li>
            </ul>
        </div>
        <table class="table table-hover text-center">
            <tr>
                <th >工号</th>
                <th >姓名</th>
                <th>二级学院编号</th>
                <th>联系电话</th>
                <th>操作</th>
            </tr>
            <%--使用JSTL标签库的迭代标签输出userlist集合的元素--%>
            <c:forEach var="item" items="${requestScope.teachers}" >
                <tr>
                    <td>${item.instID}</td>
                    <td>${item.name}</td>
                    <td>${item.collegeID}</td>
                    <td>${item.telNumber}</td>
                    <td><div class="button-group">
                        <a class="button border-main" href="TeacherServlet?instID=${item.instID}&action=viewedit"><span class="icon-edit"></span> 修改</a>
                        <a class="button border-red" href="TeacherServlet?instID=${item.instID}&action=delete" ><span class="icon-trash-o"></span> 删除</a>
                    </div></td>
                </tr>
            </c:forEach>
        </table>
    </div>
</form>
<script type="text/javascript">
    function changeSearch(){
        $("#listform").submit();
    }
</script>
</body>
</html>